﻿@model SiteCredivale.ViewModels.noticiaViewModel


@{
  
    Layout = "~/Areas/Intranet/Views/Shared/_Layout2.cshtml";
       
}
 

  <script type="text/javascript" src="~/Areas/Intranet/ckeditor/ckeditor.js"></script>

<div id="topico" class="topico">Notícia</div>
<div class="box_medio">
                                               
 @using (Html.BeginForm(null, null, FormMethod.Post, new { @id = "form",enctype = "multipart/form-data" }))
                    {
                             
     
       @Html.ValidationSummary(true)
                           
                             <div class="editor-field">
                            <label class="txtLabel">
                               Titulo:</label>
                                
                                            @Html.TextAreaFor(x => x.not_titulo)
                                           @Html.ValidationMessageFor(x => x.not_titulo)
                              
                            </div>
                            
                           
                               <div class="editor-field">
                            <label class="txtLabel">
                              Conteúdo:</label><br />
                           @Html.TextAreaFor(x => x.not_desc ,new {@class="ckeditor" })</div>
                             @Html.ValidationMessageFor(x => x.not_desc)
                          
                             <br /> <br />
                         <input id="Salvar" type="submit" value="Salvar" class="btn" />
                      
     
                           @Html.HiddenFor(x => x.not_codigo);
                          @Html.HiddenFor(x => x.not_hora);
                            @Html.HiddenFor(x => x.not_data_inclusao);
                           @Html.HiddenFor(x => x.not_setor);
 }

    @if (ViewBag.res != null)
    {


        @Html.Raw("<script type='text/javascript'>successAlert('Sucesso', '" + ViewBag.res + "');</script>")


    }
    @if (ViewBag.err != null)
    {


        @Html.Raw("<script type='text/javascript'>errorsAlert('Atenção', '" + ViewBag.err + "');</script>")


    }
    



    </div>
